package com.kyh.enume.sys;

public enum StatusEnum {
	
	UN_USED("禁用", 0), ON_USED("启用", 1);
	public String name;
	public Integer value;

	private StatusEnum(String name, Integer value) {
		this.name = name;
		this.value = value;
	}

	public static String getName(int value) {
		for (StatusEnum e : StatusEnum.values()) {
			if (e.value == value) {
				return e.name;
			}
		}

		return "";
	}
}
